package com.kingdee.eas.ec.garden.settle.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.eas.ec.garden.settle.GaSubPackageSettleBillItemsCollection;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
import com.kingdee.eas.ec.contract.biz.ContractSettleItemsCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.ec.garden.settle.GaSubPackageSettleBillItemsInfo;
import com.kingdee.eas.ec.contract.biz.app.ContractSettleItemsControllerBean;
import com.kingdee.eas.framework.CoreBaseCollection;



public abstract class AbstractGaSubPackageSettleBillItemsControllerBean extends ContractSettleItemsControllerBean implements GaSubPackageSettleBillItemsController
{
    protected AbstractGaSubPackageSettleBillItemsControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("D105372C");
    }

    public GaSubPackageSettleBillItemsInfo getGaSubPackageSettleBillItemsInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("dad0875f-9cae-49ee-80a4-7e1cef13d881"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            GaSubPackageSettleBillItemsInfo retValue = (GaSubPackageSettleBillItemsInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public GaSubPackageSettleBillItemsInfo getGaSubPackageSettleBillItemsInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("f0df152b-f565-4d3f-b785-146d69dfdd3a"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            GaSubPackageSettleBillItemsInfo retValue = (GaSubPackageSettleBillItemsInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public GaSubPackageSettleBillItemsInfo getGaSubPackageSettleBillItemsInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("23d00f9d-e956-4beb-9ef8-7664fc925197"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaSubPackageSettleBillItemsInfo retValue = (GaSubPackageSettleBillItemsInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public GaSubPackageSettleBillItemsCollection getGaSubPackageSettleBillItemsCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("b845dce1-de5a-4a36-b938-8d07d01b374e"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            GaSubPackageSettleBillItemsCollection retValue = (GaSubPackageSettleBillItemsCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public GaSubPackageSettleBillItemsCollection getGaSubPackageSettleBillItemsCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("a04553db-0ca0-49f7-935d-cd711227f338"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            GaSubPackageSettleBillItemsCollection retValue = (GaSubPackageSettleBillItemsCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public GaSubPackageSettleBillItemsCollection getGaSubPackageSettleBillItemsCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("13f4ace7-cd52-48da-9e1e-959d673b8dcd"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaSubPackageSettleBillItemsCollection retValue = (GaSubPackageSettleBillItemsCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public ContractSettleItemsCollection getContractSettleItemsCollection (Context ctx) throws BOSException
    {
    	return (ContractSettleItemsCollection)(getGaSubPackageSettleBillItemsCollection(ctx).cast(ContractSettleItemsCollection.class));
    }
    public ContractSettleItemsCollection getContractSettleItemsCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (ContractSettleItemsCollection)(getGaSubPackageSettleBillItemsCollection(ctx, view).cast(ContractSettleItemsCollection.class));
    }
    public ContractSettleItemsCollection getContractSettleItemsCollection (Context ctx, String oql) throws BOSException
    {
    	return (ContractSettleItemsCollection)(getGaSubPackageSettleBillItemsCollection(ctx, oql).cast(ContractSettleItemsCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaSubPackageSettleBillItemsCollection(ctx).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaSubPackageSettleBillItemsCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaSubPackageSettleBillItemsCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getGaSubPackageSettleBillItemsCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getGaSubPackageSettleBillItemsCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getGaSubPackageSettleBillItemsCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}